Conversation
Added details about how to use functions PHP provides to work with arrays
|
Hello @veraulitinaYa and welcome to the PHP track! Our concept exercises try to balance giving information and nudging towards exploration of the documentation. Putting all required functions into the introduction is, in my eyes, too directly giving away the information and preventing from "investing the effort to find the right solution". There is a link to all array functions at the end of the concept itself. And we always have a With all that new information, would you still want to add the paragraph as it is? I would prefer to at least take out the direct mentioning of |
|
Hello @mk-mxp! Thank you for welcoming me and giving helpful tips! Your suggestion sounds great, I'll update the pull request and make another commit! |
|
Hi @mk-mxp! I updated my merge request. Does this work better? |
There was a problem hiding this comment.
After you applied all the changes, duplicate the new section to the array concept itself (including the link definitions):
concepts/arrays/introduction.mdis the short starter explanation shown to students when they first look at the conceptconcepts/arrays/about.mdis the (usually) longer in-depth explanation shown after students solved the concept exercise
Add the new text to the end of those files. The file you edited is generated from exercises/concept/language-list/.docs/introduction.md.tpl when you run the command configlet generate --update --yes and must match the contents of the sources.
Exercism has a lot of such things to learn, and we suggest asking in the Exercism forum before making PRs to avoid re-working and frustration.
Thanks a lot for your help and for improving Exercism for everybody!
|
|
||
| ### Performing Actions with Arrays | ||
|
|
||
| PHP provides functions you can use to modify arrays and work with items in arrays. The PHP documentation offers detailed information on [array](https://www.php.net/manual/en/language.types.array.php) functions. |
There was a problem hiding this comment.
Exercism has some rules for Markdown formatting, that require one sentence per line and the separation of URLs from link placement:
| PHP provides functions you can use to modify arrays and work with items in arrays. The PHP documentation offers detailed information on [array](https://www.php.net/manual/en/language.types.array.php) functions. | |
| PHP provides functions you can use to modify arrays and work with items in arrays. | |
| The PHP documentation offers detailed information on [array functions][array-functions] and the [array type][array-type]. |
The link URL is inserted at the end of the file like this:
[array-functions]: https://www.php.net/manual/en/ref.array.php
[array-type]: https://www.php.net/manual/en/language.types.array.php
Hi! I added some details about PHP arrays! When I was working on the Language List exercise, I didn't find any information on the existence of functions that are provided by PHP to work with arrays.
I thought adding some info on that would be helpful.